import { AddressItem } from '@/types/address'
import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useAddreesStore = defineStore('address', () => {
  const address = ref<AddressItem>()

  const selectAddress = (item: AddressItem) => {
    address.value = item
  }

  return {
    address,
    selectAddress
  }
})
